#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time          : 2022/12/13 21:53
# File          : my_ai_test.py
# @Author       : MingTai

from matplotlib import pyplot as plt
import numpy as np
import pandas as pd


def test_matplotlib():
    x = [1, 2, 3, 4, 5, ]
    y = [2, 3, 4, 5, 6, ]
    print(x, y)

    fig = plt.figure(figsize=(5, 5))

    plt.plot(x, y)
    plt.title('mingtai test')
    plt.xlabel('x line')
    plt.ylabel('y line')
    plt.show()


def test_numpy():
    a = np.eye(5)
    print(type(a))
    print(a)


def test_pandas():
    data = pd.read_csv('./file_dir/np.csv')
    print(type(data))
    print(data)


if __name__ == '__main__':
    # test_matplotlib()
    # test_numpy()
    test_pandas()
